#ifndef WATERMARKWINDOW_H
#define WATERMARKWINDOW_H

#include <QMainWindow>
#include <QScreen>

class WatermarkWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit WatermarkWindow(QWidget *parent = 0);
    ~WatermarkWindow();

    void setScreen(QScreen *screen);

protected:
    virtual void paintEvent(QPaintEvent *event);
    virtual void closeEvent(QCloseEvent *event);
    virtual void timerEvent(QTimerEvent *event);

private:
    void drawTextWM();
    void drawImageWM();
    void drawQRCodeWM();
    void drawDarkWM();
    void drawMatrixWM();

private:
    void calculatePosition(int position, int width, int height, int &x, int &y);

private:
    int m_datetimeId;
    int m_topmostId;

    QScreen *m_pScreen;
};

#endif // WATERMARKWINDOW_H
